package ead.cs.repository;

import ead.cs.domain.ShipSchedule;
import java.util.Date;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

public interface ShipScheduleRepository extends MongoRepository<ShipSchedule, String> {

    @Query("{arrivalPort : ?0, departurePort: ?1}")
    public List<ShipSchedule> findSchedules(String arrivalPort, String departurePort, Date startDate, Date endDate);

}
